package moriarty.gwt.client;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.VerticalPanel;

public class AboutTab extends Composite{

	private static AboutTab instance = null;
	
	public static AboutTab getInstance(){
		if(instance == null){
			instance = new AboutTab();
		}
		return instance;
	}
	
	protected AboutTab(){
		init();
	}
	
	private void init(){
		VerticalPanel panel = new VerticalPanel();
		final HTML aboutText = new HTML("Started in the intelligent systems lab at UCF, The Song of the Day was one of the many procrastination activities we happily imposed on ourselves. " +
				"Back then the songs were kept on a list hanging on a file cabinet, which later evolved into a more distributed system of sending instant messages to one person, and having " +
				"him blast the SOTD out to everyone on his list. We kept such detailed accounts of this process that we have an accurate description of upward to 1000 songs!</br></br>" +
				"This project is to keep the \"Song of the Day\" club alive. It will provide a website to automate sending out SOTD submissions as instant messages to our subscribers, taking the burden off a single person to maintain himself.");
	
		panel.add(aboutText);
		initWidget(panel);
	}
	
}
